package com.hpeng.sys.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hpeng.sys.dao.DepartmentsDao;
import com.hpeng.sys.model.Department;
import com.hpeng.sys.service.DepartmentsMgr;
@Component("departmentsMgr")
public class DepartmentsMgrImpl implements DepartmentsMgr{
	public List<Department> getDepartments(){
		return departmentsDao.getDepartments();
	}
	public List<Department> getDepartmentsByName(String departmentName){
		return departmentsDao.getDepartmentsByName(departmentName);
	}
	public Department getById(String id){
		return departmentsDao.getById(id);
	}
	@Resource
	private DepartmentsDao departmentsDao;
}
